﻿while(1)
{
    .\UartSwitch.exe COM52 0 0; 
    Start-Sleep -Milliseconds 1000; 
    .\UartSwitch.exe COM52 0 1; 
    Start-Sleep -Milliseconds 100; 
}